﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class XYZTranslate : MonoBehaviour
{
        public static Vector3 GetLocalXYZ(Vec3dInfo ver)
        {
                return new Vector3((float)ver.x, (float)ver.y, (float)ver.z);
        }

        public static Vector3 GetWorldXYZ(int area, Vec3dInfo ver)
        {
                Vector3 pos = new Vector3();
                switch(area){
                        case 1:
                                pos = new Vector3((float)ver.x, (float)ver.y, (float)ver.z);
                                break;


                        case 2:
                                pos = new Vector3((float)ver.x, (float)ver.y, (float)ver.z);
                                break;


                        case 3:
                                pos = new Vector3((float)ver.x, (float)ver.y, (float)ver.z);
                                break;
                      

                        case 4:
                                pos = new Vector3((float)ver.x, (float)ver.y, (float)ver.z);
                                break;

                }
                return pos;
        }
}
